<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>日志文件</title>
<!--    <meta name="renderer" content="webkit">-->
<!--    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->
<!--    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">-->
    <link rel="stylesheet" href="/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="/css/public.css" media="all" />
</head>
<body>
<script src="/layui/layui.js" charset="utf-8"></script>
<script src="/js/common/jquery-3.4.1.js"></script>


<div class="header grid-demo layui-bg-green" style="width:100%;height:300%;text-align:center;" >系统日志记录</div>
<table class="layui-hide" id="log"></table>



    <script>
    layui.use('table', function() {
       var table = layui.table;

//渲染（初始化）表格 start
        table.render({
            elem: '#log'
            , url: '/u/selectAllLog'
            , limit: 15   //每页显示的记录数量
            , limits: [3, 5, 8, 10, 15, 20]  //可选择每页显示的数量
            , cellMinWidth: 95
            , page: true
            // ,height : 321
            // ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
            , method: 'post'
            , cols: [
                [
                     {field: 'id', title: '编号', align: "center", sort: true}
                    , {field: 'username', title: '学号'}
                    , {field: 'l_time', title: '操作时间', align: 'center',sort: true}
                    , {field: 'content', title: '操作内容', align: 'center'}


                ]
            ]
        });
    });
//渲染（初始化）表格 end
</script>

</body>
</html>